<?php

namespace App\Observers;

use App\Models\Apiiuser;

class ApiiObserver
{
    /**
     * 添加动作之前
     * @param Apiiuser $apiiuser
     */
    public function creating(Apiiuser $apiiuser)
    {
        $apiiuser->password = bcrypt(request()->get('password'));
    }
}
